import { GameObject, RESOURCE_TYPE, resource, LOAD_EVENT, Scene, ResourceBase } from '@eva/eva.js'
export const LoadingResource: ResourceBase[] = [
    {
        name: 'img1',
        type: RESOURCE_TYPE.IMAGE,
        src: {
            image: {
                type: 'png',
                url: '/images/snake/bg.png'
            }
        },
        preload: true
    },
    {
        name: 'img2',
        type: RESOURCE_TYPE.IMAGE,
        src: {
            image: {
                type: 'png',
                url: '/images/snake/progress_bar.png'
            }
        },
        preload: true
    },
    {
        name: 'img3',
        type: RESOURCE_TYPE.IMAGE,
        src: {
            image: {
                type: 'png',
                url: '/images/snake/progress.png'
            }
        },
        preload: true
    },
    {
        name: 'logo',
        type: RESOURCE_TYPE.IMAGE,
        src: {
            image: {
                type: 'png',
                url: '/images/snake/snake.png'
            }
        },
        preload: true
    }
]

export const GameResource: ResourceBase[] = [
    {
        name: 'background1',
        type: RESOURCE_TYPE.IMAGE,
        src: {
            image: {
                type: 'jpg',
                url: '/images/snake/background-b.jpg'
            }
        },
        preload: true
    },
    {
        name: 'background2',
        type: RESOURCE_TYPE.IMAGE,
        src: {
            image: {
                type: 'jpg',
                url: '/images/snake/background-c.jpg'
            }
        },
        preload: true
    },
    {
        name: 'gameover',
        type: RESOURCE_TYPE.IMAGE,
        src: {
            image: {
                type: 'png',
                url: '/images/snake/gameover.png'
            }
        },
        preload: true
    },
    {
        name: 'replay',
        type: RESOURCE_TYPE.IMAGE,
        src: {
            image: {
                type: 'png',
                url: '/images/snake/replay.png'
            }
        },
        preload: true
    },
    {
        name: 'start',
        type: RESOURCE_TYPE.IMAGE,
        src: {
            image: {
                type: 'png',
                url: '/images/snake/start.png'
            }
        },
        preload: true
    },
]